/*
 * @Author: your name
 * @Date: 2021-04-03 20:00:49
 * @LastEditTime: 2021-04-03 22:50:23
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \jianfa-admin\src\api\realTime.js
 */
import { get, post } from '../plugin/axioz';

export default {
    // 查询菜单列表
    getMenu(params) {
        return post('/state/get_list', params)
    },
    // 增加二级父菜单
    addTowMenu(params) {
        return post('/state/add_tow_list', params)
    },
    // 删除二级父菜单
    delTowMenu(params) {
        return post('/state/del_tow_list', params)
    },
    // 查询二级父菜单列表
    getTowMenu(params) {
        return get('/state/get_tow_list', params)
    },
    // 更具id查询url
    getUrl(params) {
        return post('/state/get_url', params)
    },
    // 删除列表
    delList(params) {
        return post('/state/del_list', params)
    },
    // 删除url
    delUrl(params) {
        return post('/state/del_url', params)
    },
    // 添加菜单
    addMenu(params) {
        return post('/state/add_list', params)
    },
    // 添加url
    addUrl(params) {
        return post('/state/add_web_url', params)
    },
}